package com.example.e_comm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.e_comm.entity.User;

public interface UserService extends IService<User> {
    //用户注册
    boolean register(User user);
    //用户登录
    String login(String username, String password);
    //当前用户信息
    User getUserByToken(String token);
    //用户注销、退出登录
    boolean logout(String token);
}
